﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    /// <summary>
    /// 
    ///</summary>
    public class Users
    {
        /// <summary>
        /// 
        /// </summary>
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 邮箱地址
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 第一次修改登录名
        /// </summary>
        public string FirstUserName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 问题
        /// </summary>
        public string Question { get; set; }

        /// <summary>
        /// 问题答案
        /// </summary>
        public string Answer { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 用户余额
        /// </summary>
        public decimal UserMoney { get; set; }

        /// <summary>
        /// 用户积分
        /// </summary>
        public int UserPoints { get; set; }

        /// <summary>
        /// 行业ID
        /// </summary>
        public int IndustryID { get; set; }

        /// <summary>
        /// 用户经验值
        /// </summary>
        public int RankPoints { get; set; }

        /// <summary>
        /// 信用额度
        /// </summary>
        public decimal CreditLine { get; set; }

        /// <summary>
        /// 建立时间
        /// </summary>
        public DateTime? DateCreated { get; set; }

        /// <summary>
        /// 状态1正常，0锁定
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 登录次数
        /// </summary>
        public int LoginCount { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 最后登陆IP
        /// </summary>
        public string LastLoginIP { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public string IsDelete { get; set; }

    }
}
